package cn.itcast.bos.dao.base;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Controller;

import cn.itcast.bos.domain.base.Courier;
@Controller
public interface CourierRepository extends JpaRepository<Courier, Integer>,JpaSpecificationExecutor<Courier>{
	@Query("update Courier set deltag='1' where id=?")
	@Modifying
	public void updateDelTag(int id);
	@Query("update Courier set deltag=null where id=?")
	@Modifying
	public void updateRecTag(int id);
}
